using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace project
{
    public partial class Publisher_Receipt : Form
    {

        string pname;
        int amount_paid;
        int current_due;
        DateTime trans_date;

        public Publisher_Receipt()
        {

            this.pname = Form3.pub_receipt.pname;
            this.amount_paid = Form3.pub_receipt.amount_paid;
            this.current_due =Form3.pub_receipt.current_due;
            this.trans_date = Form3.pub_receipt.trans_date;
            string format = "dd/MMM/yyyy";
            InitializeComponent();
            textBox3.Text = pname;
            textBox1.Text = amount_paid.ToString() ;
            textBox2.Text = current_due.ToString();
            textBox4.Text = trans_date.ToString(format);
        }

        

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}